package com.yingluo.abacus.boot.core.mvc.sitemesh;

import org.sitemesh.builder.SiteMeshFilterBuilder;
import org.sitemesh.config.ConfigurableSiteMeshFilter;

//https://www.cnblogs.com/xiaojf/p/8081183.html
public class Meshsite3Filter extends ConfigurableSiteMeshFilter {
    @Override
    protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
        builder.addDecoratorPath("/plantform/docs-app/meshsite/**", "/static/meshsite/default.html")//拦截规则，/decorator/default 会被转发
//                .addDecoratorPath("/templates/docs-app/meshsite/**", "/static/meshsite/default.html")//拦截规则，/decorator/default 会被转发
//meshsite靜態頁面無法裝飾
                .addExcludedPath("/assets/**")
                .addExcludedPath("/static/**") //白名单
//                .addTagRuleBundle(new MyTagRuleBundle())//自定义标签
        ;
    }
}
